﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using System.IO;

namespace CPPProject.Web.Host.Startup
{
    public class Program
    {
        public static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args)
        {
            return WebHost.CreateDefaultBuilder(args).ConfigureAppConfiguration(builder =>
            {
                builder.AddJsonFile("host.json", optional: true);
            })
                .UseStartup<Startup>()
                .Build();

        }

    }
}
